package program;

import be.kuleuven.cs.som.annotate.Basic;

/**
 * A class representing the smallest possible command.
 * 
 * @author Jef Keijers/Bachelor of Science: Informatics
 * @version 1.0
 */
public class Atom extends SExpression {
	
	/**
	 * Creates the smallest possible command and sets it to the given command.
	 * @param command
	 */ 
	public Atom(String command) {
		this.command=command;
	}
	
	/**
	 * Returns the robot's command.
	 */
	@Basic
	public String getCommand() {
		return command;
	}

	private String command;
	
	@Override
	public String toString() {
		return command;
	}
}
